﻿


@model IEnumerable<GUI.Models.AuteurModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>


userid : @ViewBag.userId <br />

 <span>toguid :  @ViewBag.test2guid</span> <br />
@ViewBag.id

@*<link href="~/Content/GridStyle.css" rel="stylesheet" />
@{
    var grid = new WebGrid(
        Model, rowsPerPage: 5,
        defaultSort: "Name",
        columnNames: new[] { "Id", "Name", "Lastname", "Profil", "Adress Mail" }
        );
}

@grid.GetHtml(

tableStyle:"webgrid-table",
headerStyle:"webgrid-header",
footerStyle:"webgrid-footer",
alternatingRowStyle:"webgrid-alternating-row",
rowStyle:"webgrid-row-style",
fillEmptyRows:false,
mode:WebGridPagerModes.All,
columns:grid.Columns
(

grid.Column("Name",header:"الإسم" + GUI.Helpers.HelpersGrid.SortDirection(null,ref grid,"Name"),style:"name"),
grid.Column("Lastname",header:"اللقب" + GUI.Helpers.HelpersGrid.SortDirection(null,ref grid,"Lastname"),style:"Lastname"),
grid.Column("Profil",header:"لمحة", canSort:false,style:"Profil"),
grid.Column("Adressmail",header:"العنوان إلكتروني" + GUI.Helpers.HelpersGrid.SortDirection(null,ref grid,"Adressmail "),style:"Adressmail"),
grid.Column("Id",header:"المقالات",format:item => Html.ActionLink("Articles","Index","Articles",new { id=item.Id },null)),
grid.Column("",
                header: "Actions",
                format: @<text>
                    <img src="~/Images/edit.png" alt="Modifier" onclick="EditTest('@item.Id')"/>|
                   <img src="~/Images/delete.png" alt="Delete"  onclick="DeleteTest('@item.Id')" />                  
                       
                        </text>
                )
                

)
)*@






           @* @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })*@

